package com.imooc.sellspringcloud.server.repository;


import com.imooc.sellspringcloud.server.dataobject.ProductCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author
 * @create 2019-07-27 17:35
 **/
@Repository
public interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {

    /**
     * 根据type集合获取商品类目
     * @param types
     * @return
     */
    List<ProductCategory> findByCategoryTypeIsIn(List<Integer> types);

}